home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 11 / Cream of the Crop 11-1.iso / windows / boyer04.zip / DEMO.MAK < prev    next >
Text File  |  1996-01-15  |  1KB  |  87 lines

  1. ##### Module Macro #####
  2. NAME    = demo
  3. SRCS    = $(NAME).c boyer.c
  4. OBJS    =
  5.  
  6. ##### C7 Macro #####
  7. C7    = 1
  8.  
  9. ##### Library Macros #####
  10. LIBS    = libw llibcew
  11. MOD     = -AL
  12.  
  13. ##### Include Macro #####
  14. INCLS   = $(NAME).h
  15.  
  16. ##### Resource Macro #####
  17. RCFILES =  $(NAME).rc
  18.  
  19. ##### DEBUG Defined #####
  20. DEBUG    = 1
  21.  
  22. ##### Build Option Macros #####
  23. !if $(DEBUG)
  24. DDEF    = -DDEBUG
  25. CLOPT    = -Zid -Od
  26. MOPT    = -Zi
  27. LOPT    = /CO /LI /MAP
  28. !else
  29. DDEF    =
  30. CLOPT    = -Os
  31. LOPT    =
  32. !endif
  33.  
  34. ##### General Macros #####
  35. DEF    =
  36.  
  37. ##### Tool Macros #####
  38. ASM    = masm -Mx $(MOPT) $(DDEF) $(DEF)
  39. CC    = cl -nologo -c $(MOD) -G2sw -Zp -W3 $(CLOPT) $(DDEF) $(DEF)
  40. LINK    = link /NOD /NOE $(LOPT)
  41. RC    = rc $(DDEF) $(DEF)
  42. HC    = hc
  43.  
  44. ##### Inference Rules #####
  45. .c.obj:
  46.     $(CC) $*.c
  47.  
  48. .asm.obj:
  49.     $(ASM) $*.asm;
  50.  
  51. .rc.res:
  52.     $(RC) -r $*.rc
  53.  
  54. ##### Main (default) Target #####
  55. goal: clean $(NAME).exe
  56.  
  57. ##### Dependents For Goal and Command Lines #####
  58. $(NAME).exe: $(SRCS:.c=.obj) $(NAME).def $(NAME).res
  59.     $(LINK) @<<
  60.     $(SRCS:.c=.obj) $(OBJS),
  61.     $(NAME).exe,
  62.     $(NAME).map,
  63.     $(LIBS),
  64.     $(NAME).def
  65. <<
  66.     $(RC) -T $(NAME).res
  67. !if $(DEBUG)
  68. !if !$(C7)
  69.     cvpack -p $(NAME).exe
  70. !endif
  71.     mapsym $(NAME).map
  72. !endif
  73.  
  74. ##### Dependents #####
  75. $(SRCS:.c=.obj): $(INCLS)
  76. $(NAME).res: $(INCLS) $(RCFILES)
  77.  
  78. ##### Clean Directory #####
  79. clean:
  80.     -del *.obj
  81.     -del *.res
  82.     -del *.map
  83.     -del *.pdb
  84.     -del *.sym
  85.     -del *.exe
  86.  
  87.